((Application)application()).addGuest(currentGuest);
currentGuest = new Guest();
Note: The addGuest method is defined in the class Application, which is a subclass of WOApplication. The component's application method (called in the above statement) returns an object of type WOApplication, so you must cast it to Application in order to access its addGuest method.